package com.bosssoft.ecds.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bosssoft.ecds.entity.po.UabAgenBillPO;
import org.apache.ibatis.annotations.Select;

public interface UabAgenBillMapper extends BaseMapper<UabAgenBillPO> {
    @Select("select f_id,f_bill_name,f_bill_precode,f_bill_id from uab_agen_bill where f_hx_status = 0 and f_logic_delete = 0 and f_is_return = 0 order by f_bill_id limit 1")
    UabAgenBillPO selectForKai();

    @Select("select count(f_id) from uab_agen_bill where f_is_return = 0 and f_logic_delete = 0 and f_hx_status = 0")
    Integer selectBillCounts();
}
